package ke05;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

public class FileTest {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		
		File absoluteFile = new File("C:/Uni/temp.txt");
		System.out.println(absoluteFile.isFile());
		
		File relativeFile = new File("./test.txt");
		relativeFile.createNewFile();
		
		File relativeDirectory = new File("aufgabe1/");
		relativeDirectory.mkdir();
		
		File directory = new File("C:/Uni/");
		System.out.println(directory.isDirectory());
		System.out.println(directory.getAbsolutePath());
		
		System.out.println(File.separator);
		
		File f = File.createTempFile("bla", ".txt");
		System.out.println(f.getAbsolutePath());
		
		boolean status;
		status = new File("/Uni/test/").mkdir();
		System.out.println(status);
		status = new File("/Hallo/neuer/Ordner").mkdirs();
		System.out.println(status);
		
		String[] entries = new File("./folien").list();
		System.out.println(Arrays.toString(entries));
	}
	
	
	
	
	
	
	
	

}
